<?php
/**
 * Created by PhpStorm.
 * User: lili
 * Date: 19-1-20
 * Time: 下午10:08
 */
require "vendor/autoload.php";
require "pdo.php";


$fp = fopen("lock.txt", "w+");

if(flock($fp,LOCK_EX))   //锁定当前指针

{

    //..处理订单


    pdoms(1);









    flock($fp,LOCK_UN);

}

fclose($fp);